package lxs.xounter.hithit;

import android.app.TabActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TabHost;

public class XuanguanActivity extends TabActivity {

	ImageButton im1, im2, im3;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.main);
		TabHost tabHost = getTabHost();
		LayoutInflater.from(this).inflate(R.layout.tablayout1,
				tabHost.getTabContentView(), true);
		tabHost.addTab(tabHost.newTabSpec("tab1").setContent(R.id.tab1)
				.setIndicator("tab1"));
		tabHost.addTab(tabHost.newTabSpec("tab3").setContent(R.id.tab2)
				.setIndicator("tab2"));
		tabHost.addTab(tabHost.newTabSpec("tab3").setContent(R.id.tab3)
				.setIndicator("tab3"));
		im1 = (ImageButton) findViewById(R.id.imageButton1);
		im2 = (ImageButton) findViewById(R.id.ImageButton02);
		im3 = (ImageButton) findViewById(R.id.ImageButton03);

		im1.setOnClickListener(im1_clk);

	}

	private ImageButton.OnClickListener im1_clk = new ImageButton.OnClickListener() {

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			Log.d("ddddd", "kakakakak");
		}
	};
}